package cn.hs.service;

import cn.hs.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    //查询所有并分页与模糊查询
    public PageInfo<User> selectAll(Integer pageNum,Integer pageSize,User user);
    //增加
    public int insert(User user);
    //修改
    public int update(User user);
    //删除
    public int delete(Integer id);
    //光查询所有
    public List<User> select(User user);
    //根据用户名与密码查询
    public User selectNameAndPwd(String username,String password);
//    //根据id查询
//    public User selectById(Integer id);
}
